#!/bin/bash

export PATH="/usr/local/bin:$PATH"
cd /root/wx

if [ $1 == "restart" ]; then
    ./stop_server.sh
    ./run_server.sh
elif [ $1 == "run" ]; then
    ./run_server.sh
elif [ $1 == "stop" ]; then
    ./stop_server.sh
elif [ $1 == "update" ]; then
    ./server.sh restart
    ./update.sh
elif [ $1 == "pack_logs" ]; then
    ./pack_logs.sh
fi
